// 商品佣金设置
import request from '@/utils/request'
export function setCommission({ id, shop, user }) {
  return request({
    url: '/api/back/offline/shop',
    method: 'post',
    params: { type: 'ratio' },
    data: { id, shop, user }
  })
}
export function getCommissionList({ kind, condition, page }) {
  return request({
    url: '/api/back/offline/shop',
    method: 'get',
    params: { type: 'ratio', kind, condition, page }
  })
}
// 批量设置佣金
export function setMutipleCommission({ id, shop, user }) {
  return request({
    url: '/api/back/offline/shop',
    method: 'post',
    params: { type: 'ratios' },
    data: { id, shop, user }
  })
}
